<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<html>
    <head>
        <title>FOOBAR</title>
		<link rel="shortcut icon" href="rsrc/images/book-icon.ico" />
        <style type="text/css">
            @import url(rsrc/css/common.css);
            @import url(rsrc/css/login.css);
            @import url(rsrc/css/register.css);
            @import url(rsrc/css/validationEngine.jquery.css);
        </style>
        <script type="text/javascript" src = "rsrc/js/jquery-latest.js"></script>
        <script type="text/javascript" src = "rsrc/js/jquery.validationEngine-en.js"></script>
        <script type="text/javascript" src = "rsrc/js/jquery.validationEngine.js"></script>
    </head>
    <body>
        <div class="main-container">
            <div id="top">
                <div><img src="rsrc/images/LOGO.png" height="50" /></div>
                <div>
                    <ul id="navigation" class='hd'>
                        <li><a href=""><span>Home</span></a></li>
                        <li><a href=""><span>About Us</span></a></li>
                    </ul>
                </div>
            </div>
            <div>
                <p>
                    <span class="page-title"></span>
                </p>
                <div class="title-separator"></div>
                <div class="clearfix">
                    <div class="right" id = 'loginDiv'>
                        <span class="page-label">Login</span>
			<div class="separator"></div>
			<form id="login" method="post" action="login_action">
                            <table id='signup_table'>	
                                <tr>
                                    <td class='log_label'>User ID: <br /> <input type='text' name='username' class='validate[required,custom[onlyLetterNumber]] input_text' /></td>
                                </tr>
                                <tr>
                                    <td class='log_label'>Password: <br /> <input type='password' name='password'  class='validate[required] input_text' /></td>
                                </tr>
                                <tr>
                                    <td>
                                        <c:if test="${!empty captcha}">
                                            <%
                                                ReCaptcha c = ReCaptchaFactory.newReCaptcha("6LfdCc4SAAAAAKJ72RfYk_9C4NoTV_lXAncW7Xdj", "6LfdCc4SAAAAAI4p64kJ91fJl4NHEFMULd1ZP4QS", false);
                                                out.print(c.createRecaptchaHtml(null, null));
                                            %> 
                                        </c:if>
                                    </td>
                                </tr>
                                <tr>
                                    <td align='right'><input id='button' type='submit' value='Login' class='gb' name='login' /></td>
                                </tr>
                            </table>
                        </form>
						
                    </div>
                    <div id="left">
                        <div style="height:20px"></div>
                        <div class="left-main-control" style="border-right: 1px solid #fff;">                         
                            Login        
                        </div>
                        <div style="height:20px"></div>
                        <a href="register">
			<div class="left-main-control">
                            Register
			</div>
			</a>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
